mirror of
https://gitee.com/openharmony/third_party_minimp4
synced 2024-12-03 10:31:03 +00:00
fix mp4_h26x_write_nal return values
This commit is contained in:
parent
8bbd1ca2bb
commit
3d259a1c08
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user