[vlc-commits] demux: ps: fix h264 regression

Francois Cartegnie git at videolan.org
Sat Apr 1 14:57:31 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Apr  1 14:56:41 2017 +0200| [bc9369286c0847ad2b9f08ba19bb2c4133e722f3] | committer: Francois Cartegnie

demux: ps: fix h264 regression

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

 modules/demux/mpeg/ps.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ps.h b/modules/demux/mpeg/ps.h
index ca9db87..4ff4395 100644
--- a/modules/demux/mpeg/ps.h
+++ b/modules/demux/mpeg/ps.h
@@ -314,7 +314,7 @@ static inline int ps_track_fill( ps_track_t *tk, ps_psm_t *p_psm,
         }
     }
 
-    return VLC_SUCCESS;
+    return (tk->fmt.i_cat != UNKNOWN_ES || p_pkt) ? VLC_SUCCESS : VLC_EGENERIC;
 }
 
 /* return the id of a PES (should be valid) */



More information about the vlc-commits mailing list