fix mp4_h26x_write_nal return values

This commit is contained in:
lieff 2020-02-23 19:05:29 +03:00
parent 8bbd1ca2bb
commit 3d259a1c08

View File

@ -2317,7 +2317,7 @@ int mp4_h26x_write_nal(mp4_h26x_writer_t *h, const unsigned char *nal, int lengt
}
payload_type = nal[0] & 31;
if (9 == payload_type)
return; /* access unit delimiter */
return err; /* access unit delimiter */
#if MINIMP4_TRANSCODE_SPS_ID
// Transcode SPS, PPS and slice headers, reassigning ID's for SPS and PPS:
// - assign unique ID's to different SPS and PPS
@ -2428,6 +2428,8 @@ exit_with_free:
break;
}
#endif
if (err)
break;
}
return err;
}