diff options
author | James Almer <jamrial@gmail.com> | 2024-06-16 13:55:25 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-06-20 08:57:45 -0300 |
commit | 53c8d417edb0e156f39e50b4166279ac7144318f (patch) | |
tree | 30b5530e7caec4011032b9cbcd4298e4d57201ab /libavformat/movenc.c | |
parent | 0eacad6921c6835d0432f02b1aa5ec9b492a3572 (diff) | |
download | ffmpeg-53c8d417edb0e156f39e50b4166279ac7144318f.tar.gz |
avformat: split off generic NAL function helpers into their own file
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 86c1b1da2c..a6d6e00cde 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -63,6 +63,7 @@ #include "libavutil/uuid.h" #include "hevc.h" #include "rtpenc.h" +#include "nal.h" #include "mov_chan.h" #include "movenc_ttml.h" #include "mux.h" @@ -6376,7 +6377,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) /* from x264 or from bytestream H.264 */ /* NAL reformatting needed */ if (trk->hint_track >= 0 && trk->hint_track < mov->nb_tracks) { - ret = ff_avc_parse_nal_units_buf(pkt->data, &reformatted_data, + ret = ff_nal_parse_units_buf(pkt->data, &reformatted_data, &size); if (ret < 0) return ret; @@ -6389,7 +6390,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt) goto err; } } else { - size = ff_avc_parse_nal_units(pb, pkt->data, pkt->size); + size = ff_nal_parse_units(pb, pkt->data, pkt->size); } } } else if (par->codec_id == AV_CODEC_ID_HEVC && trk->vos_len > 6 && |