Skip to content
Snippets Groups Projects
Commit 3c432631 authored by Justin Ruggles's avatar Justin Ruggles
Browse files

pcmenc: Do not set avpkt->size.

It is already the correct size as set by ff_alloc_packet().
parent 1a670973
Branches
Tags
No related merge requests found
...@@ -193,7 +193,6 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, ...@@ -193,7 +193,6 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
return -1; return -1;
} }
avpkt->size = frame->nb_samples * avctx->channels * sample_size;
*got_packet_ptr = 1; *got_packet_ptr = 1;
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment