Ticket #2022 (closed defect: fixed)

Opened 5 months ago

Last modified 3 months ago

DNxHD: Decode video returns wrong number of bytes

Reported by: maf Owned by:
Priority: minor Component: avcodec
Version: unspecified Keywords: DNxHD
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

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() ).

Change History

comment:1 Changed 5 months ago by cehoyos

Please send patches to ffmpeg-devel, they usually receive more attention there.

comment:2 Changed 3 months ago by michael

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in dae38a66ebd8a71aad51a29311f1c50df3ae3a2e

Note: See TracTickets for help on using tickets.