avformat/flvenc: flx flvflags no_metadata bug
When use flvflags no_metadata , the FLV header will be cover by write tailer This commit fix the bug Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
d3ce067e76
commit
4e3cc4bdd8
@ -848,6 +848,7 @@ end:
|
|||||||
avio_seek(pb, flv->datasize_offset, SEEK_SET);
|
avio_seek(pb, flv->datasize_offset, SEEK_SET);
|
||||||
put_amf_double(pb, flv->datasize);
|
put_amf_double(pb, flv->datasize);
|
||||||
}
|
}
|
||||||
|
if (!(flv->flags & FLV_NO_METADATA)) {
|
||||||
if (!(flv->flags & FLV_NO_DURATION_FILESIZE)) {
|
if (!(flv->flags & FLV_NO_DURATION_FILESIZE)) {
|
||||||
/* update information */
|
/* update information */
|
||||||
if (avio_seek(pb, flv->duration_offset, SEEK_SET) < 0) {
|
if (avio_seek(pb, flv->duration_offset, SEEK_SET) < 0) {
|
||||||
@ -861,7 +862,8 @@ end:
|
|||||||
put_amf_double(pb, file_size);
|
put_amf_double(pb, file_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
avio_seek(pb, file_size, SEEK_SET);
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user