Skip to content

Commit

Permalink
ffmpeg_filter: Fix non jpeg yuv in jpeg support
Browse files Browse the repository at this point in the history
This is a regression, did not bisect so dont know what caused it but
likely some changes to the command line handling code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Oct 27, 2013
1 parent 4307026 commit d9bc251
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ffmpeg_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ void choose_sample_fmt(AVStream *st, AVCodec *codec)

static char *choose_pix_fmts(OutputStream *ost)
{
AVDictionaryEntry *strict_dict = av_dict_get(ost->opts, "strict", NULL, 0);
if (strict_dict)
// used by choose_pixel_fmt() and below
av_opt_set(ost->st->codec, "strict", strict_dict->value, 0);

if (ost->keep_pix_fmt) {
if (ost->filter)
avfilter_graph_set_auto_convert(ost->filter->graph->graph,
Expand Down

0 comments on commit d9bc251

Please sign in to comment.