[FFmpeg-devel] [PATCH] lavc/mpeg2dec: fix MPEG2 VA-API interlace decoding issue.

Hendrik Leppkes h.leppkes at gmail.com
Mon Sep 17 15:00:25 EEST 2018


On Mon, Sep 17, 2018 at 1:22 PM Jun Zhao <mypopydev at gmail.com> wrote:
>
> From: Jun Zhao <jun.zhao at intel.com>
>
> For interlaced frame, it has to call slice_end() for both fields. And
> VASliceParameterBufferMPEG2::slice_vertical_position is supposed to be
> the position in the picture but not field in this case.
>

How does this impact other hwaccels or software decoding? Because
those cases seem to be working just fine the way it is now, from what
I can tell.

Also, in the VA-API calling code, are you setting avctx->slice_flags
to SLICE_FLAG_ALLOW_FIELD? Because that forces an end_frame call for
every field, which may be all that is needed here.

- Hendrik


More information about the ffmpeg-devel mailing list