[FFmpeg-cvslog] avformat/mpjpegdec: Remove redundant initializations
Andreas Rheinhardt
git at videolan.org
Tue Feb 11 01:17:20 EET 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Tue Jan 7 14:55:43 2020 +0100| [dd81f73946b85134441c0a917dc4dadf7b70ba85] | committer: 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: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd81f73946b85134441c0a917dc4dadf7b70ba85
---
libavformat/mpjpegdec.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index 1e2ab0db1a..df2880412d 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -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 */
More information about the ffmpeg-cvslog
mailing list