[FFmpeg-devel] [PATCH] start code detection for hardware decode
anuj mittal
am.devel at gmail.com
Wed Oct 17 12:56:52 CEST 2012
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.
Please comment.
Thank you
Anuj
-------------- 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/20121017/b3df5fd6/attachment.obj>
More information about the ffmpeg-devel
mailing list