You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mpegts_read_header: goto fail instead of return directly
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2050,7 +2050,7 @@ static int mpegts_read_header(AVFormatContext *s)
|
|||||||
for(;;) {
|
for(;;) {
|
||||||
ret = read_packet(s, packet, ts->raw_packet_size);
|
ret = read_packet(s, packet, ts->raw_packet_size);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return -1;
|
goto fail;
|
||||||
pid = AV_RB16(packet + 1) & 0x1fff;
|
pid = AV_RB16(packet + 1) & 0x1fff;
|
||||||
if ((pcr_pid == -1 || pcr_pid == pid) &&
|
if ((pcr_pid == -1 || pcr_pid == pid) &&
|
||||||
parse_pcr(&pcr_h, &pcr_l, packet) == 0) {
|
parse_pcr(&pcr_h, &pcr_l, packet) == 0) {
|
||||||
|
Reference in New Issue
Block a user