[3/3] avplay: Copy audio side data too

Message ID 1322819839-34912-3-git-send-email-martin@martin.st
State Superseded
Headers show

Commit Message

Martin Storsjö Dec. 2, 2011, 9:57 a.m.
From: Michael Niedermayer <michaelni@gmx.at>

This still doesn't make avplay handle sample rate changes
properly during the stream, but at least allows the decoder
to be aware of it.
---
 avplay.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/avplay.c b/avplay.c
index 556c463..84829a1 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2107,6 +2107,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) {