#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
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac

Reply via email to