OSDN Git Service

libgsm: Reset the MS mode of GSM in the flush function
authorMartin Storsjö <martin@martin.st>
Wed, 14 Dec 2011 20:32:29 +0000 (22:32 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 15 Dec 2011 07:08:40 +0000 (09:08 +0200)
commit1b35af3225392a5328f6534c53e96a56cd5eb305
treec76973b6eabb5cbddd76c5347e8de0a3f52beb09
parent8637af8d2499e72ad6662627dae9f245e3e961df
libgsm: Reset the MS mode of GSM in the flush function

The mode is set in libgsm_decode_init, but the decoder
object is simply destroyed and recreated in the flush
function - therefore the mode has to be set again.

This fixes playback using the libgsm_ms decoder in avplay.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libgsm.c