Commit c6007065 authored by Anton Khirnov's avatar Anton Khirnov

avconv: in output_packet() don't set decoded_data_size for video.

It's only used for audio.
parent 515901fa
...@@ -1600,7 +1600,6 @@ static int output_packet(InputStream *ist, int ist_index, ...@@ -1600,7 +1600,6 @@ static int output_packet(InputStream *ist, int ist_index,
(ist->st->codec->sample_rate * ist->st->codec->channels); (ist->st->codec->sample_rate * ist->st->codec->channels);
break;} break;}
case AVMEDIA_TYPE_VIDEO: case AVMEDIA_TYPE_VIDEO:
decoded_data_size = (ist->st->codec->width * ist->st->codec->height * 3) / 2;
if (!(decoded_frame = avcodec_alloc_frame())) if (!(decoded_frame = avcodec_alloc_frame()))
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
avpkt.pts = pkt_pts; avpkt.pts = pkt_pts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment