[FFmpeg-cvslog] avconv: in output_packet() don't set decoded_data_size for video.
Anton Khirnov
git at videolan.org
Mon Oct 10 03:59:50 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Sep 27 20:00:28 2011 +0200| [c6007065edd79b6cd8423a27b63e726eee2d868c] | committer: Anton Khirnov
avconv: in output_packet() don't set decoded_data_size for video.
It's only used for audio.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c6007065edd79b6cd8423a27b63e726eee2d868c
---
avconv.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/avconv.c b/avconv.c
index d2cb69f..a5548ec 100644
--- 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;
More information about the ffmpeg-cvslog
mailing list