avconv: in output_packet() don't set decoded_data_size for video.
authorAnton Khirnov <anton@khirnov.net>
Tue, 27 Sep 2011 18:00:28 +0000 (20:00 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 9 Oct 2011 15:15:18 +0000 (17:15 +0200)
It's only used for audio.

avconv.c

index d2cb69f..a5548ec 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -1600,7 +1600,6 @@ static int output_packet(InputStream *ist, int ist_index,
                     (ist->st->codec->sample_rate * ist->st->codec->channels);
                 break;}
             case AVMEDIA_TYPE_VIDEO:
-                    decoded_data_size = (ist->st->codec->width * ist->st->codec->height * 3) / 2;
                     if (!(decoded_frame = avcodec_alloc_frame()))
                         return AVERROR(ENOMEM);
                     avpkt.pts = pkt_pts;