"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/h264_slice.c" between
libav-11.7.tar.gz and libav-11.8.tar.gz

About: libav provides cross-platform tools ("avconv") and libraries to convert, manipulate and stream a wide range of multimedia (audio and video) formats and protocols.

h264_slice.c  (libav-11.7):h264_slice.c  (libav-11.8)
skipping to change at line 1216 skipping to change at line 1216
h0->current_slice = 0; h0->current_slice = 0;
if (!h0->first_field) { if (!h0->first_field) {
if (h->cur_pic_ptr && !h->droppable) { if (h->cur_pic_ptr && !h->droppable) {
ff_thread_report_progress(&h->cur_pic_ptr->tf, INT_MAX, ff_thread_report_progress(&h->cur_pic_ptr->tf, INT_MAX,
h->picture_structure == PICT_BOTTOM_FI ELD); h->picture_structure == PICT_BOTTOM_FI ELD);
} }
h->cur_pic_ptr = NULL; h->cur_pic_ptr = NULL;
} }
} }
if (!h0->current_slice && h != h0) {
av_log(h->avctx, AV_LOG_ERROR,
"A new picture can only be started in the first slice thread\n");
return AVERROR(ENOSYS);
}
slice_type = get_ue_golomb_31(&h->gb); slice_type = get_ue_golomb_31(&h->gb);
if (slice_type > 9) { if (slice_type > 9) {
av_log(h->avctx, AV_LOG_ERROR, av_log(h->avctx, AV_LOG_ERROR,
"slice type %d too large at %d %d\n", "slice type %d too large at %d %d\n",
slice_type, h->mb_x, h->mb_y); slice_type, h->mb_x, h->mb_y);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
if (slice_type > 4) { if (slice_type > 4) {
slice_type -= 5; slice_type -= 5;
h->slice_type_fixed = 1; h->slice_type_fixed = 1;
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS