On Sat, Jun 18, 2011 at 05:27:22PM +0200, Anton Khirnov wrote:
> ---
> libavformat/utils.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index e3485e6..81bc9b7 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -395,6 +395,9 @@ static AVDictionary
> *convert_format_parameters(AVFormatParameters *ap)
> char buf[1024];
> AVDictionary *opts = NULL;
>
> + if (!ap)
> + return NULL;
> +
> if (ap->time_base.num) {
> snprintf(buf, sizeof(buf), "%d/%d", ap->time_base.den,
> ap->time_base.num);
> av_dict_set(&opts, "framerate", buf, 0);
> --
looks ok
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel