Commit dd81f739 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt Committed by Marton Balint

avformat/mpjpegdec: Remove redundant initializations

The AVPacket destined for a demuxer's output has already been
initialized before it reaches the demuxer.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 212077ed
......@@ -331,9 +331,7 @@ static int mpjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
int remaining = 0, len;
const int read_chunk = 2048;
av_init_packet(pkt);
pkt->data = NULL;
pkt->size = 0;
pkt->pos = avio_tell(s->pb);
while ((ret = ffio_ensure_seekback(s->pb, read_chunk - remaining)) >= 0 && /* we may need to return as much as all we've read back to the buffer */
......
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