diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-16 23:22:37 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-16 23:22:42 +0200 |
commit | 5c14b282d1cc407f6b9efb03564ecac75fb59471 (patch) | |
tree | 4fd5f621a4ef4e4bdaabfa74dc000af282fe3a49 /libavformat/utils.c | |
parent | 9946a6aa55b71b7a46b4d835f9554cca9fba7234 (diff) | |
parent | ae702edf438c67ea5ad257a6779f68900edd88c9 (diff) | |
download | ffmpeg-5c14b282d1cc407f6b9efb03564ecac75fb59471.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
flacdec: read attached pictures.
lavf: don't segfault when a NULL filename is passed to avformat_open_input()
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index c0574e521d..6ac12922d5 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -618,7 +618,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputForma } s->duration = s->start_time = AV_NOPTS_VALUE; - av_strlcpy(s->filename, filename, sizeof(s->filename)); + av_strlcpy(s->filename, filename ? filename : "", sizeof(s->filename)); /* allocate private data */ if (s->iformat->priv_data_size > 0) { |