git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf89e6b
)
fix got_picture output
author
Fabrice Bellard
<fabrice@bellard.org>
Wed, 15 Aug 2001 13:10:39 +0000
(13:10 +0000)
committer
Fabrice Bellard
<fabrice@bellard.org>
Wed, 15 Aug 2001 13:10:39 +0000
(13:10 +0000)
Originally committed as revision 99 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mjpeg.c
patch
|
blob
|
history
diff --git
a/libavcodec/mjpeg.c
b/libavcodec/mjpeg.c
index
7410583
..
1103e11
100644
(file)
--- a/
libavcodec/mjpeg.c
+++ b/
libavcodec/mjpeg.c
@@
-875,11
+875,11
@@
static int mjpeg_decode_frame(AVCodecContext *avctx,
int len, code, start_code, input_size, i;
AVPicture *picture = data;
+ *data_size = 0;
+
/* no supplementary picture */
- if (buf_size == 0) {
- *data_size = 0;
+ if (buf_size == 0)
return 0;
- }
buf_ptr = buf;
buf_end = buf + buf_size;