<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head></head><body><div style="font-size: 12pt; font-family: Calibri,sans-serif;"><div>WTH is this supposed to do? I think it is common knowledge here that there is no 1:1 coded block to decoded picture mapping. (SPS? PPS? Multiple blocks for one frame?)</div><div><br></div><div>Please think before you push unreviewed stuff.</div><div><br></div><div>-- </div><div>Rémi Denis-Courmont</div><div>Sent from my NVIDIA Tegra-powered device</div><br><div id="htc_header">----- Reply message -----<br>De : git@videolan.org (Francois Cartegnie)<br>Pour : <vlc-commits@videolan.org><br>Objet : [vlc-commits] decoder: count dropped video at decoder level<br>Date : sam., juil. 4, 2015 14:50</div></div><br><pre style="word-wrap: break-word; white-space: pre-wrap;">vlc | branch: master | Francois Cartegnie <fcvlcdev@free.fr> | Sat Jul  4 13:09:33 2015 +0200| [2e29d68c78b7e13ff4ea6595fe520a7d626826fe] | committer: Francois Cartegnie

decoder: count dropped video at decoder level

> <a href="http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e29d68c78b7e13ff4ea6595fe520a7d626826fe">http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e29d68c78b7e13ff4ea6595fe520a7d626826fe</a>
---

 src/input/decoder.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 68d8e7c..a314410 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -934,9 +934,11 @@ static void DecoderDecodeVideo( decoder_t *p_dec, block_t *p_block )
     int i_lost = 0;
     int i_decoded = 0;
     int i_displayed = 0;
+    bool b_lost = !!p_block;
 
     while( (p_pic = p_dec->pf_decode_video( p_dec, &p_block )) )
     {
+        b_lost = false;
         vout_thread_t  *p_vout = p_owner->p_vout;
         if( DecoderIsFlushing( p_dec ) )
         {   /* It prevent freezing VLC in case of broken decoder */
@@ -970,6 +972,9 @@ static void DecoderDecodeVideo( decoder_t *p_dec, block_t *p_block )
         DecoderPlayVideo( p_dec, p_pic, &i_displayed, &i_lost );
     }
 
+    if( b_lost )
+        i_lost++;
+
     /* Update ugly stat */
     input_thread_t *p_input = p_owner->p_input;
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
<a href="https://mailman.videolan.org/listinfo/vlc-commits">https://mailman.videolan.org/listinfo/vlc-commits</a>

</pre></body></html>