mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avconv: in output_packet() don't set decoded_data_size for video.
It's only used for audio.
This commit is contained in:
parent
515901fad2
commit
c6007065ed
1
avconv.c
1
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;
|
||||
|
Loading…
Reference in New Issue
Block a user