Opened 5 years ago

Closed 5 years ago

#1967 closed defect (fixed)

Wrong error trace in h264

Reported by: sgarcia Owned by:
Priority: minor Component: avcodec
Version: git-master Keywords: h264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

in h264.c:2049

slice_type = get_ue_golomb_31(&s->gb);

if (slice_type > 9) {

av_log(h->s.avctx, AV_LOG_ERROR,

"slice type too large (%d) at %d %d\n",
h->slice_type, s->mb_x, s->mb_y);

return -1;

}

Should be

slice_type = get_ue_golomb_31(&s->gb);
if (slice_type > 9) {

av_log(h->s.avctx, AV_LOG_ERROR,

"slice type too large (%d) at %d %d\n",
slice_type, s->mb_x, s->mb_y);

return -1;

}

That's is change h->slice_type by slice_type in the error message

Change History (2)

comment:1 Changed 5 years ago by cehoyos

  • Keywords h264 added

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

comment:2 Changed 5 years ago by cehoyos

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

Thank you for fixing this problem!

Note: See TracTickets for help on using tickets.