avformat/utils: reinject global side data on seeks
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 13 Apr 2014 16:27:05 +0000 (18:27 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 13 Apr 2014 16:27:05 +0000 (18:27 +0200)
This fixes ffplay replaygain with seeking

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index 768acd4..2014577 100644 (file)
@@ -1716,6 +1716,8 @@ void ff_read_frame_flush(AVFormatContext *s)
 
         for (j = 0; j < MAX_REORDER_DELAY + 1; j++)
             st->pts_buffer[j] = AV_NOPTS_VALUE;
 
         for (j = 0; j < MAX_REORDER_DELAY + 1; j++)
             st->pts_buffer[j] = AV_NOPTS_VALUE;
+
+        st->global_side_data_injected = 0;
     }
 }
 
     }
 }