ffplay: Copy audio side data too. This fixes handling of some rare nellymoser files...
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 30 Nov 2011 20:33:34 +0000 (21:33 +0100)
committerMarton Balint <cus@passwd.hu>
Thu, 1 Dec 2011 19:55:01 +0000 (20:55 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c

index 75e0bb5..51753e2 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -2152,6 +2152,9 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
 
         pkt_temp->data = pkt->data;
         pkt_temp->size = pkt->size;
+        pkt_temp->flags           = pkt->flags;
+        pkt_temp->side_data       = pkt->side_data;
+        pkt_temp->side_data_elems = pkt->side_data_elems;
 
         /* if update the audio clock with the pts */
         if (pkt->pts != AV_NOPTS_VALUE) {