[FFmpeg-soc] [soc]: r3039 - eac3/eac3dec.c

jbr subversion at mplayerhq.hu
Tue Aug 5 06:00:45 CEST 2008


Author: jbr
Date: Tue Aug  5 06:00:45 2008
New Revision: 3039

Log:
use memset() instead of a loop

Modified:
   eac3/eac3dec.c

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Tue Aug  5 06:00:45 2008
@@ -346,10 +346,8 @@ int ff_eac3_parse_header(AC3DecodeContex
     s->snr_offset_strategy = get_bits(gbc, 2);
     parse_transient_proc_info = get_bits1(gbc);
     s->block_switch_syntax = get_bits1(gbc);
-    if (!s->block_switch_syntax) {
-        for (ch = 1; ch <= s->fbw_channels; ch++)
-            s->block_switch[ch] = 0;
-    }
+    if (!s->block_switch_syntax)
+        memset(s->block_switch, 0, sizeof(s->block_switch));
     s->dither_flag_syntax = get_bits1(gbc);
     if (!s->dither_flag_syntax) {
         s->dither_all = 1;



More information about the FFmpeg-soc mailing list