[vlc-commits] codec: videotoolbox: tag still frame

Francois Cartegnie git at videolan.org
Fri Nov 16 09:32:43 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov 15 22:08:06 2018 +0100| [c69488325bf59dd1ea201d947a04729a8b030328] | committer: Francois Cartegnie

codec: videotoolbox: tag still frame

forced only is not sufficient

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c69488325bf59dd1ea201d947a04729a8b030328
---

 modules/codec/videotoolbox.m | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index c1b8f68118..e7753aebee 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -122,8 +122,8 @@ struct frame_info_t
     picture_t *p_picture;
     int i_poc;
     int i_foc;
-    bool b_forced;
     bool b_flush;
+    bool b_eos;
     bool b_keyframe;
     bool b_field;
     bool b_progressive;
@@ -930,7 +930,7 @@ static frame_info_t * CreateReorderInfo(decoder_t *p_dec, const block_t *p_block
     p_info->i_length = p_block->i_length;
 
     /* required for still pictures/menus */
-    p_info->b_forced = (p_block->i_flags & BLOCK_FLAG_END_OF_SEQUENCE);
+    p_info->b_eos = (p_block->i_flags & BLOCK_FLAG_END_OF_SEQUENCE);
 
     if (date_Get(&p_sys->pts) == VLC_TICK_INVALID)
         date_Set(&p_sys->pts, p_block->i_dts);
@@ -2206,7 +2206,8 @@ static void DecoderCallback(void *decompressionOutputRefCon,
         p_info->p_picture = p_pic;
 
         p_pic->date = pts.value;
-        p_pic->b_force = p_info->b_forced;
+        p_pic->b_force = p_info->b_eos;
+        p_pic->b_still = p_info->b_eos;
         p_pic->b_progressive = p_info->b_progressive;
         if(!p_pic->b_progressive)
         {



More information about the vlc-commits mailing list