mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-26 20:50:34 +00:00
fix dirty data makes read err
Signed-off-by: sunyujie <1458565796@qq.com>
This commit is contained in:
parent
89131c6c1c
commit
4df8b3cad4
1
BUILD.gn
1
BUILD.gn
@ -148,7 +148,6 @@ config("ffmpeg_config") {
|
||||
"-DOHOS_EXPAND_MP4_INFO",
|
||||
"-DOHOS_OPTIMIZE_DELAY",
|
||||
"-DOHOS_AV3A_DEMUXER",
|
||||
"-DOHOS_FRAME_TYPE_COMPAT",
|
||||
]
|
||||
if (use_musl) {
|
||||
cflags += [ "-Wno-bool-operation" ]
|
||||
|
@ -3549,7 +3549,7 @@ static int mpegts_resync(AVFormatContext *s, int seekback, const uint8_t *curren
|
||||
if (avio_feof(pb))
|
||||
return AVERROR_EOF;
|
||||
if (c == 0x47) {
|
||||
#ifdef OHOS_FRAME_TYPE_COMPAT
|
||||
#ifdef OHOS_OPT_COMPAT
|
||||
avio_seek(pb, -1, SEEK_CUR);
|
||||
#else
|
||||
int new_packet_size, ret;
|
||||
|
Loading…
Reference in New Issue
Block a user