[FFmpeg-devel] [PATCH] start code detection for hardware decode in mpeg4/divx streams

anuj mittal am.devel at gmail.com
Thu Oct 18 17:54:11 CEST 2012

On Wed, Oct 17, 2012 at 4:26 PM, anuj mittal <am.devel at gmail.com> wrote:
> Hello
> I've some AVIs with divx bitstream packed frames. When I play these
> file using hardware decode VAAPI, I notice frame drops.
> It looks like that the logic to calculate the end of the frame (while
> calculating the slice size to be sent to hardware) isn't correct for
> hardware decode. If I have a B frame packed with a P, it just sends
> the size of P+B to the hardware. Because of this, the packed B frames
> do not get decoded at all.
> The attached patch tries to fix this behaviour. The code will now
> check for the start code while calculating the value of "end". If the
> start of next frame has been detected, it will update s->mb_y.

Does this look ok? Thank you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Start-code-frame-handling-while-decoding-using-hardw.patch
Type: application/octet-stream
Size: 2263 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121018/ddb27107/attachment.obj>

More information about the ffmpeg-devel mailing list