On Wed, Dec 28, 2016 at 1:15 PM, Anton Khirnov <an...@khirnov.net> wrote:
> It might be incorrectly set to 1 if the previous call exited with an
> error.
>
> CC: libav-sta...@libav.org
> ---
>  libavcodec/h264dec.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
> index 54ded03..c308274 100644
> --- a/libavcodec/h264dec.c
> +++ b/libavcodec/h264dec.c
> @@ -520,6 +520,7 @@ static int decode_nal_units(H264Context *h, const uint8_t 
> *buf, int buf_size)
>
>      if (!(avctx->flags2 & AV_CODEC_FLAG2_CHUNKS)) {
>          h->current_slice = 0;
> +        h->field_started = 0;
>          if (!h->first_field)
>              h->cur_pic_ptr = NULL;
>          ff_h264_sei_uninit(&h->sei);
> --

ok
-- 
Vittorio
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to