diff options
author | Roberto Togni <r_togni@tiscali.it> | 2007-11-15 21:04:06 +0000 |
---|---|---|
committer | Roberto Togni <r_togni@tiscali.it> | 2007-11-15 21:04:06 +0000 |
commit | e29378ff886b574aba7402f885d0a62a9d728091 (patch) | |
tree | a4d142a00555e8402c25816edd1fed8c81d9e2dd /libavformat/rmdec.c | |
parent | aa519c47710bf5a2280760abbfe2eac9ee464f5c (diff) | |
download | ffmpeg-e29378ff886b574aba7402f885d0a62a9d728091.tar.gz |
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
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r-- | libavformat/rmdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 254620a3b2..aebfead653 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -615,6 +615,7 @@ ff_rm_parse_packet (AVFormatContext *s, AVStream *st, int len, AVPacket *pkt, } } else av_get_packet(pb, pkt, len); + rm_ac3_swap_bytes(st, pkt); } else av_get_packet(pb, pkt, len); @@ -707,6 +708,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt) } pkt->size = len; } + rm_ac3_swap_bytes(st, pkt); } else { int seq=1; resync: @@ -724,7 +726,6 @@ resync: } } - rm_ac3_swap_bytes(st, pkt); return 0; } |