[FFmpeg-trac] #2022(avcodec:new): DNxHD: Decode video returns wrong number of bytes
FFmpeg
trac at avcodec.org
Wed Dec 12 14:54:36 CET 2012
#2022: DNxHD: Decode video returns wrong number of bytes
---------------------------------+---------------------------------------
Reporter: maf | Type: defect
Status: new | Priority: minor
Component: avcodec | Version: unspecified
Keywords: DNxHD | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 1 |
---------------------------------+---------------------------------------
Summary of the bug:
Value returned from dnxhd_decode_frame() is wrong. It only returns half of
the buffer consumed.
The problem is that buf_size is not decremented in 2nd field iteration.
The solution would be to move line:
{{{
buf_size -= ctx->cid_table->coding_unit_size;
}}}
two lines up (before if() ).
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2022>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list