]> granicus.if.org Git - handbrake/commitdiff
stream: remove unused variable pix_fmt
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 20 Sep 2015 11:51:50 +0000 (05:51 -0600)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sun, 20 Sep 2015 11:53:23 +0000 (05:53 -0600)
libhb/stream.c

index e404513e0f15d53ff71323d56de6b8f7b0147244..76fb96fc923f22485234a5033dbb2d7b6956ec20 100644 (file)
@@ -5494,7 +5494,6 @@ static hb_title_t *ffmpeg_title_scan( hb_stream_t *stream, hb_title_t *title )
     title->demuxer = HB_NULL_DEMUXER;
     title->video_codec = 0;
     int i;
-    int pix_fmt = -1;
     for (i = 0; i < ic->nb_streams; ++i )
     {
         if ( ic->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
@@ -5503,7 +5502,6 @@ static hb_title_t *ffmpeg_title_scan( hb_stream_t *stream, hb_title_t *title )
              title->video_codec == 0 )
         {
             AVCodecContext *context = ic->streams[i]->codec;
-            pix_fmt = context->pix_fmt;
             if ( context->pix_fmt != AV_PIX_FMT_YUV420P &&
                  !sws_isSupportedInput( context->pix_fmt ) )
             {