[FFmpeg-cvslog] r11039 - trunk/libavformat/rmdec.c

rtogni subversion
Thu Nov 15 22:04:06 CET 2007


Author: rtogni
Date: Thu Nov 15 22:04:06 2007
New Revision: 11039

Log:
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()



Modified:
   trunk/libavformat/rmdec.c

Modified: trunk/libavformat/rmdec.c
==============================================================================
--- trunk/libavformat/rmdec.c	(original)
+++ trunk/libavformat/rmdec.c	Thu Nov 15 22:04:06 2007
@@ -615,6 +615,7 @@ ff_rm_parse_packet (AVFormatContext *s, 
             }
         } 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(AVFormatContex
             }
             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;
 }
 




More information about the ffmpeg-cvslog mailing list