]> git.sesse.net Git - vlc/blobdiff - src/misc/es_format.c
secstotimestr: use int32_t not to overflow if int exceeds 32-bits
[vlc] / src / misc / es_format.c
index 6885c410ed94bd89d0b0d1a88e5cb4185723b9b8..cad689af8f8267c107e1aed2959e9ea9c1832509 100644 (file)
@@ -170,6 +170,7 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma,
     case VLC_CODEC_J420:
         p_fmt->i_bits_per_pixel = 12;
         break;
+    case VLC_CODEC_YV9:
     case VLC_CODEC_I410:
         p_fmt->i_bits_per_pixel = 9;
         break;
@@ -241,6 +242,8 @@ void es_format_Init( es_format_t *fmt,
     fmt->i_cat                  = i_cat;
     fmt->i_codec                = i_codec;
     fmt->i_original_fourcc      = 0;
+    fmt->i_profile              = -1;
+    fmt->i_level                = -1;
     fmt->i_id                   = -1;
     fmt->i_group                = 0;
     fmt->i_priority             = 0;