fix dirty data makes read err

Signed-off-by: sunyujie <1458565796@qq.com>
This commit is contained in:
sunyujie 2024-11-22 15:06:01 +08:00
parent 89131c6c1c
commit 4df8b3cad4
2 changed files with 3 additions and 4 deletions

View File

@ -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" ]

View File

@ -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;