mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-02 14:33:23 +02:00
ffplay: Copy audio side data too. This fixes handling of some rare nellymoser files that change the sample rate mid stream (sample file at: http://trac.videolan.org/vlc/ticket/5586)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
4a8e3324fb
commit
59a58884b9
3
ffplay.c
3
ffplay.c
@ -2152,6 +2152,9 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
|
|||||||
|
|
||||||
pkt_temp->data = pkt->data;
|
pkt_temp->data = pkt->data;
|
||||||
pkt_temp->size = pkt->size;
|
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 update the audio clock with the pts */
|
||||||
if (pkt->pts != AV_NOPTS_VALUE) {
|
if (pkt->pts != AV_NOPTS_VALUE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user