Mercurial > libavformat.hg
changeset 2753:b55dad23bfcb libavformat
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()
author | rtogni |
---|---|
date | Thu, 15 Nov 2007 21:04:06 +0000 |
parents | 9f60c60d8d57 |
children | 2a34ebe41c27 |
files | rmdec.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rmdec.c Thu Nov 15 14:26:52 2007 +0000 +++ b/rmdec.c Thu Nov 15 21:04:06 2007 +0000 @@ -615,6 +615,7 @@ } } else av_get_packet(pb, pkt, len); + rm_ac3_swap_bytes(st, pkt); } else av_get_packet(pb, pkt, len); @@ -707,6 +708,7 @@ } pkt->size = len; } + rm_ac3_swap_bytes(st, pkt); } else { int seq=1; resync: @@ -724,7 +726,6 @@ } } - rm_ac3_swap_bytes(st, pkt); return 0; }