]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/wmaenc.c
Cleanup, use av_freep() instead of av_free(x); x=NULL
[ffmpeg] / libavcodec / wmaenc.c
index b26abf348cff92d25ef7b555a1d444ba20d8bb07..0fa17e2864764a7d5f51acb72986787ff76fac33 100644 (file)
@@ -178,7 +178,7 @@ static int encode_block(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
     }
 
     for(ch = 0; ch < s->nb_channels; ch++) {
-        if (s->channel_coded[ch]= 1) { //FIXME only set channel_coded when needed, instead of always
+        if ((s->channel_coded[ch]= 1)) { //FIXME only set channel_coded when needed, instead of always
             init_exp(s, ch, fixed_exp);
         }
     }
@@ -387,6 +387,7 @@ AVCodec wmav1_encoder =
     encode_init,
     encode_superframe,
     ff_wma_end,
+    .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"),
 };
 
 AVCodec wmav2_encoder =
@@ -398,4 +399,5 @@ AVCodec wmav2_encoder =
     encode_init,
     encode_superframe,
     ff_wma_end,
+    .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"),
 };