]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_subtitles.c
lavf/matroskaenc: return an error for unsupported types.
[ffmpeg] / libavfilter / vf_subtitles.c
index 10f07a48a500e81d5726f422fbcfd226c492c983..b5f5bc9d19f0421d6308eb118cb83500757a6dde 100644 (file)
@@ -323,7 +323,7 @@ static av_cold int init_subtitles(AVFilterContext *ctx)
     pkt.size = 0;
     while (av_read_frame(fmt, &pkt) >= 0) {
         int i, got_subtitle;
-        AVSubtitle sub;
+        AVSubtitle sub = {0};
 
         if (pkt.stream_index == sid) {
             ret = avcodec_decode_subtitle2(dec_ctx, &sub, &got_subtitle, &pkt);