]> git.sesse.net Git - ffmpeg/commitdiff
shorten: remove the flush function.
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 17 Sep 2011 02:21:47 +0000 (22:21 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 13 Oct 2011 20:31:16 +0000 (16:31 -0400)
The shorten decoder does not support seeking.

libavcodec/shorten.c

index 22c5c0a152edb2b2fd0d9c1b589507fb441d5090..dd1bef8a181973bed9b797cdae23f15dbf950788 100644 (file)
@@ -534,13 +534,6 @@ static av_cold int shorten_decode_close(AVCodecContext *avctx)
     return 0;
 }
 
-static void shorten_flush(AVCodecContext *avctx){
-    ShortenContext *s = avctx->priv_data;
-
-    s->bitstream_size=
-        s->bitstream_index= 0;
-}
-
 AVCodec ff_shorten_decoder = {
     .name           = "shorten",
     .type           = AVMEDIA_TYPE_AUDIO,
@@ -549,6 +542,5 @@ AVCodec ff_shorten_decoder = {
     .init           = shorten_decode_init,
     .close          = shorten_decode_close,
     .decode         = shorten_decode_frame,
-    .flush= shorten_flush,
     .long_name= NULL_IF_CONFIG_SMALL("Shorten"),
 };