[FFmpeg-devel] [PATCH 2/4] lavfi/subtitles: support charset option.

Clément Bœsch ubitux at gmail.com
Mon Dec 31 11:22:57 CET 2012


On Mon, Dec 31, 2012 at 11:19:42AM +0100, Clément Bœsch wrote:
[...]
> @@ -306,7 +309,9 @@ static av_cold int init_subtitles(AVFilterContext *ctx, const char *args)
>                 avcodec_get_name(dec_ctx->codec_id));
>          return AVERROR(EINVAL);
>      }
> -    ret = avcodec_open2(dec_ctx, dec, NULL);
> +    if (ass->charset)
> +        av_dict_set(&codec_opts, "sub_charset", ass->charset, 0);
> +    ret = avcodec_open2(dec_ctx, dec, &codec_opts);
>      if (ret < 0)
>          goto end;

av_dict_free() added

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121231/12b4a407/attachment.asc>


More information about the ffmpeg-devel mailing list