|
|
@ -3788,6 +3788,10 @@ int avcodec_parameters_from_context(AVCodecParameters *par, |
|
|
|
par->initial_padding = codec->initial_padding; |
|
|
|
par->initial_padding = codec->initial_padding; |
|
|
|
par->seek_preroll = codec->seek_preroll; |
|
|
|
par->seek_preroll = codec->seek_preroll; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case AVMEDIA_TYPE_SUBTITLE: |
|
|
|
|
|
|
|
par->width = codec->width; |
|
|
|
|
|
|
|
par->height = codec->height; |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (codec->extradata) { |
|
|
|
if (codec->extradata) { |
|
|
@ -3837,6 +3841,10 @@ int avcodec_parameters_to_context(AVCodecContext *codec, |
|
|
|
codec->initial_padding = par->initial_padding; |
|
|
|
codec->initial_padding = par->initial_padding; |
|
|
|
codec->seek_preroll = par->seek_preroll; |
|
|
|
codec->seek_preroll = par->seek_preroll; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case AVMEDIA_TYPE_SUBTITLE: |
|
|
|
|
|
|
|
codec->width = par->width; |
|
|
|
|
|
|
|
codec->height = par->height; |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (par->extradata) { |
|
|
|
if (par->extradata) { |
|
|
|