git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avcodec/alac: only set *got_frame_ptr when all channels have been decoded
[ffmpeg.git]
/
libavcodec
/
alac.c
diff --git
a/libavcodec/alac.c
b/libavcodec/alac.c
index
3f37f61
..
1929839
100644
(file)
--- a/
libavcodec/alac.c
+++ b/
libavcodec/alac.c
@@
-490,7
+490,8
@@
static int alac_decode_frame(AVCodecContext *avctx, void *data,
avpkt->size * 8 - get_bits_count(&alac->gb));
}
- *got_frame_ptr = 1;
+ if (alac->channels == ch)
+ *got_frame_ptr = 1;
return avpkt->size;
}