[vlc-commits] avodec: unused variable

Rémi Denis-Courmont git at videolan.org
Sat May 25 09:57:43 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 25 10:49:18 2013 +0300| [dd99f3c05b56d3c0fb0328c7fd3164eff7fc7148] | committer: Rémi Denis-Courmont

avodec: unused variable

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dd99f3c05b56d3c0fb0328c7fd3164eff7fc7148
---

 modules/codec/avcodec/encoder.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 6435a01..684add1 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -902,7 +902,6 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
 {
     encoder_sys_t *p_sys = p_enc->p_sys;
     int i_out, i_plane, i_got_packet=1;
-    AVPacket av_pkt;
 
     /* Initialize the video output buffer the first time.
      * This is done here instead of OpenEncoder() because we need the actual
@@ -914,6 +913,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
     block_t *p_block = block_Alloc( blocksize );
 
 #if (LIBAVCODEC_VERSION_MAJOR >= 54)
+    AVPacket av_pkt;
     /*We don't use av_pkt with major_version < 54, so no point init it*/
     av_init_packet( &av_pkt );
     av_pkt.data = p_block->p_buffer;



More information about the vlc-commits mailing list