aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-16 23:57:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-16 23:57:17 +0100
commit18b7f40007038f51ed3d9c39dcfc52e7a1655ceb (patch)
tree17a245bef91424f5afb565864320f4567f0f208a /libavcodec/h264.c
parent7056f13a89da1d1f4afd5c6342e7ca6824777125 (diff)
downloadffmpeg-18b7f40007038f51ed3d9c39dcfc52e7a1655ceb.tar.gz
h264: reset last_pocs on IDRs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 3ec8b85f8f..e62574f9b6 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2371,11 +2371,14 @@ static void implicit_weight_table(H264Context *h, int field){
* instantaneous decoder refresh.
*/
static void idr(H264Context *h){
+ int i;
ff_h264_remove_all_refs(h);
h->prev_frame_num= 0;
h->prev_frame_num_offset= 0;
h->prev_poc_msb=
h->prev_poc_lsb= 0;
+ for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++)
+ h->last_pocs[i] = INT_MIN;
}
/* forget old pics after a seek */