diff --git a/mythtv/external/FFmpeg/libavcodec/h264.c b/mythtv/external/FFmpeg/libavcodec/h264.c
index 4e6d6a5..98926cd 100644
a
|
b
|
static int decode_slice_header(H264Context *h, H264Context *h0) |
3251 | 3251 | Picture *prev = h->short_ref_count ? h->short_ref[0] : NULL; |
3252 | 3252 | av_log(h->s.avctx, AV_LOG_DEBUG, "Frame num gap %d %d\n", |
3253 | 3253 | h->frame_num, h->prev_frame_num); |
| 3254 | if (!h->sps.gaps_in_frame_num_allowed_flag) |
| 3255 | for(i=0; i<FF_ARRAY_ELEMS(h->last_pocs); i++) |
| 3256 | h->last_pocs[i] = INT_MIN; |
3254 | 3257 | if (ff_h264_frame_start(h) < 0) |
3255 | 3258 | return -1; |
3256 | 3259 | h->prev_frame_num++; |
diff --git a/mythtv/external/FFmpeg/libavcodec/h264_refs.c b/mythtv/external/FFmpeg/libavcodec/h264_refs.c
index 6080f1e..ac1eb0d 100644
a
|
b
|
int ff_h264_decode_ref_pic_list_reordering(H264Context *h){ |
287 | 287 | for(list=0; list<h->list_count; list++){ |
288 | 288 | for(index= 0; index < h->ref_count[list]; index++){ |
289 | 289 | if (!h->ref_list[list][index].f.data[0]) { |
| 290 | int i; |
290 | 291 | av_log(h->s.avctx, AV_LOG_ERROR, "Missing reference picture\n"); |
| 292 | for (i=0; i<FF_ARRAY_ELEMS(h->last_pocs); i++) |
| 293 | h->last_pocs[i] = INT_MIN; |
291 | 294 | if (h->default_ref_list[list][0].f.data[0]) |
292 | 295 | h->ref_list[list][index]= h->default_ref_list[list][0]; |
293 | 296 | else |