#1967: Wrong error trace in h264
---------------------------------+--------------------------------------
             Reporter:  sgarcia  |                     Type:  defect
               Status:  new      |                 Priority:  minor
            Component:  avcodec  |                  Version:  git-master
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+--------------------------------------
 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

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1967>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac

Reply via email to