Commit 78a79a2c authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/nutenc: replace conditional by assert

Its implied by sp_count==0
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6d1aba6a
......@@ -1166,7 +1166,8 @@ static int nut_write_trailer(AVFormatContext *s)
write_headers(s, bc);
ret = avio_open_dyn_buf(&dyn_bc);
if (ret >= 0 && nut->sp_count && nut->write_index) {
if (ret >= 0 && nut->sp_count) {
av_assert1(nut->write_index);
write_index(nut, dyn_bc);
put_packet(nut, bc, dyn_bc, 1, INDEX_STARTCODE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment