[FFmpeg-cvslog] avdevice/decklink_dec: fix extracting luma
Marton Balint
git at videolan.org
Fri Oct 6 21:36:18 EEST 2017
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Wed Oct 4 22:55:00 2017 +0200| [7d141e2cacb42a25df0c32a6deb5256fdbec4425] | committer: Marton Balint
avdevice/decklink_dec: fix extracting luma
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7d141e2cacb42a25df0c32a6deb5256fdbec4425
---
libavdevice/decklink_dec.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index f496a58059..7ac04375d9 100644
--- a/libavdevice/decklink_dec.cpp
+++ b/libavdevice/decklink_dec.cpp
@@ -138,7 +138,7 @@ static int check_vanc_parity_checksum(uint16_t *buf, int len, uint16_t checksum)
static void extract_luma_from_v210(uint16_t *dst, const uint8_t *src, int width)
{
int i;
- for (i = 0; i < width / 3; i += 3) {
+ for (i = 0; i < width / 3; i++) {
*dst++ = (src[1] >> 2) + ((src[2] & 15) << 6);
*dst++ = src[4] + ((src[5] & 3) << 8);
*dst++ = (src[6] >> 4) + ((src[7] & 63) << 4);
More information about the ffmpeg-cvslog
mailing list