On Sun, Oct 02, 2011 at 12:09:11PM -0400, Justin Ruggles wrote:
> The shorten decoder does not support seeking.
> ---
>  libavcodec/shorten.c |    8 --------
>  1 files changed, 0 insertions(+), 8 deletions(-)
> 
> diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c
> index 80b1b4d..03c6f54 100644
> --- a/libavcodec/shorten.c
> +++ b/libavcodec/shorten.c
> @@ -528,13 +528,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,
> @@ -543,6 +536,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"),
>  };

lgtm

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to