[FFmpeg-devel] [PATCH] lavc/h264_sei: fix green metadata typo

Clément Bœsch u at pkh.me
Mon Jun 13 17:42:00 CEST 2016


From: Clément Bœsch <clement at stupeflix.com>

---
I'm guessing this is what was wanted.
---
 libavcodec/h264_sei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c
index bdc5c9f..3c6d988 100644
--- a/libavcodec/h264_sei.c
+++ b/libavcodec/h264_sei.c
@@ -381,7 +381,7 @@ static int decode_GreenMetadata(H264Context *h)
             av_log(h->avctx, AV_LOG_DEBUG,      "green_metadata_period_type                     = %d\n",
                    h->sei_green_metadata.period_type);
 
-        if (h->sei_green_metadata.green_metadata_type==2){
+        if (h->sei_green_metadata.period_type==2){
             h->sei_green_metadata.num_seconds = get_bits(&h->gb, 16);
             if (h->avctx->debug & FF_DEBUG_GREEN_MD)
                 av_log(h->avctx, AV_LOG_DEBUG,  "green_metadata_num_seconds                     = %d\n",
-- 
2.8.3



More information about the ffmpeg-devel mailing list