From: Michael Niedermayer <[email protected]>
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(-)
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) {
--
1.7.3.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel