[FFmpeg-devel] [PATCH] vp9_parser: allow superframes with a single frame.
Paul B Mahol
onemda at gmail.com
Fri Nov 6 19:23:26 CET 2015
On 11/6/15, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> ---
> libavcodec/vp9_parser.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/vp9_parser.c b/libavcodec/vp9_parser.c
> index 6713850..2e9235e 100644
> --- a/libavcodec/vp9_parser.c
> +++ b/libavcodec/vp9_parser.c
> @@ -132,7 +132,7 @@ static int parse(AVCodecParserContext *ctx,
> size -= sz; \
> } \
> parse_frame(ctx, *out_data, *out_size); \
> - return *out_size
> + return s->n_frames > 0 ? *out_size : full_size
>
> case_n(1, *idx);
> case_n(2, AV_RL16(idx));
> --
> 2.1.2
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
It should be fine if it works.
More information about the ffmpeg-devel
mailing list