diff options
author | Marton Balint <cus@passwd.hu> | 2022-11-13 11:36:52 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-11-22 22:54:27 +0100 |
commit | bd5ea785567c60a8f58c472ada37115b680f8691 (patch) | |
tree | 8355cdfc8519eb68e282e2f85a5f6cfb3abed26f | |
parent | 29d1d3e2e8df603c55534ee335ddec4170e9ca93 (diff) | |
download | ffmpeg-bd5ea785567c60a8f58c472ada37115b680f8691.tar.gz |
avformat/electronicarts: set packet_read in one place
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/electronicarts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 0a0d6249e8..0532264f38 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -726,8 +726,9 @@ get_video_packet: ret = av_append_packet(pb, pkt, chunk_size); } else ret = av_get_packet(pb, pkt, chunk_size); + packet_read = 1; + if (ret < 0) { - packet_read = 1; partial_packet = 0; break; } @@ -737,7 +738,6 @@ get_video_packet: else pkt->stream_index = ea->video.stream_index; pkt->flags |= key; - packet_read = 1; break; default: |