aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/wtvdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-29 09:57:44 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-30 05:25:11 +0200
commit8c89fc18e6125ae0449091d82a2fe200ed848c43 (patch)
treefacf0a1fad84fdb60ab4bd7a5ebd44f784baaaf0 /libavformat/wtvdec.c
parente6ea75a38de192c3133b9eebe603979bffeed20b (diff)
downloadffmpeg-8c89fc18e6125ae0449091d82a2fe200ed848c43.tar.gz
avformat/matroskaenc: Check for failure when writing SeekHead
mkv_write_seekhead() would up until now try to seek to the position where the SeekHead ought to be written, write the SeekHead and seek back. The first of these seeks was checked as was writing, yet the seek back was unchecked. Moreover the return value of mkv_write_seekhead() was unchecked (the ordinary return value was the position where the SeekHead was written). This commit changes this: Everything is checked. In the unseekable case (where the first seek may nevertheless work when it happens in the buffer) a failure at the first seek is not considered an error. In any case, failure to seek back is an error. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/wtvdec.c')
0 files changed, 0 insertions, 0 deletions