mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Move dnet-ac3 byte-swapping code close to audio packet read code
Fixed version of patch in [FFmpeg-devel] [PATCH 5/6] rmdec.c: move around rm_ac3_swap_bytes() Originally committed as revision 11039 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
aa519c4771
commit
e29378ff88
@ -615,6 +615,7 @@ ff_rm_parse_packet (AVFormatContext *s, AVStream *st, int len, AVPacket *pkt,
|
|||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
av_get_packet(pb, pkt, len);
|
av_get_packet(pb, pkt, len);
|
||||||
|
rm_ac3_swap_bytes(st, pkt);
|
||||||
|
|
||||||
} else
|
} else
|
||||||
av_get_packet(pb, pkt, len);
|
av_get_packet(pb, pkt, len);
|
||||||
@ -707,6 +708,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
}
|
}
|
||||||
pkt->size = len;
|
pkt->size = len;
|
||||||
}
|
}
|
||||||
|
rm_ac3_swap_bytes(st, pkt);
|
||||||
} else {
|
} else {
|
||||||
int seq=1;
|
int seq=1;
|
||||||
resync:
|
resync:
|
||||||
@ -724,7 +726,6 @@ resync:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rm_ac3_swap_bytes(st, pkt);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user