Add some metadata. Should be a workaround.

This commit is contained in:
Themaister 2011-11-05 12:25:09 +01:00
parent a816082ac3
commit 53abc92322
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,7 @@ struct video_info
int fmt; int fmt;
int pix_fmt; int pix_fmt;
int pix_size; size_t pix_size;
AVFormatContext *format; AVFormatContext *format;
@ -258,6 +258,8 @@ static bool init_muxer(ffemu_t *handle)
ctx->oformat->flags |= AVFMT_TS_NONSTRICT; ctx->oformat->flags |= AVFMT_TS_NONSTRICT;
#endif #endif
av_dict_set(&ctx->metadata, "title", "SSNES video dump", 0);
#ifdef HAVE_FFMPEG_AVFORMAT_WRITE_HEADER #ifdef HAVE_FFMPEG_AVFORMAT_WRITE_HEADER
if (avformat_write_header(ctx, NULL) < 0) if (avformat_write_header(ctx, NULL) < 0)
#else #else