[FFmpeg-devel] [PATCH] avcodec/h264_metadata_bsf: give warning when	display_orientation set to EXTRACT
    Steven Liu 
    lq at chinaffmpeg.org
       
    Sun Feb  9 07:10:05 EET 2020
    
    
  
because it cannot get result now.
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 libavcodec/h264_metadata_bsf.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c
index d96a50dbf7..712b54dacc 100644
--- a/libavcodec/h264_metadata_bsf.c
+++ b/libavcodec/h264_metadata_bsf.c
@@ -438,6 +438,8 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *pkt)
     }
 
     if (ctx->display_orientation != PASS) {
+        if (ctx->display_orientation == EXTRACT)
+            av_log(bsf, AV_LOG_WARNING, "h264_metadata display_orientation have not support extract yet!\n");
         for (i = au->nb_units - 1; i >= 0; i--) {
             H264RawSEI *sei;
             if (au->units[i].type != H264_NAL_SEI)
-- 
2.15.1
    
    
More information about the ffmpeg-devel
mailing list