diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-21 14:06:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-21 14:06:42 +0100 |
commit | 29707f5ba6ff34b2ed89f3af0c00e1b3c01ac9b1 (patch) | |
tree | 9e2f5bf57e25ccc89adbf2a882f8d4d055a4230f /libavformat/flvenc.c | |
parent | 63753186cc2766e01c6a46d06895a7742c1a768f (diff) | |
parent | a925f723a915bc0255e2673f8817af5212131763 (diff) | |
download | ffmpeg-29707f5ba6ff34b2ed89f3af0c00e1b3c01ac9b1.tar.gz |
Merge commit 'a925f723a915bc0255e2673f8817af5212131763'
* commit 'a925f723a915bc0255e2673f8817af5212131763':
rtp: Don't read priv_data unless it is allocated
flvenc: Check whether seeking back to the header succeeded
sapenc: Pass the title on to the chained muxers
Conflicts:
libavformat/flvenc.c
libavformat/sapenc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index e8b7f6c161..502da0f0c5 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -426,11 +426,11 @@ static int flv_write_trailer(AVFormatContext *s) file_size = avio_tell(pb); /* update information */ - if(avio_seek(pb, flv->duration_offset, SEEK_SET) < 0) + if (avio_seek(pb, flv->duration_offset, SEEK_SET) < 0) av_log(s, AV_LOG_WARNING, "Failed to update header with correct duration.\n"); else put_amf_double(pb, flv->duration / (double)1000); - if(avio_seek(pb, flv->filesize_offset, SEEK_SET) < 0) + if (avio_seek(pb, flv->filesize_offset, SEEK_SET) < 0) av_log(s, AV_LOG_WARNING, "Failed to update header with correct filesize.\n"); else put_amf_double(pb, file_size); |