[FFmpeg-devel] [PATCH] avcodec/bsf/h264_mp4toannexb.c: change extradata to annexb if this is avcc.

2025-04-24 Thread jiangjie
if get AV_PKT_DATA_NEW_EXTRADATA in AVPacket, this bitstream filter will return an error. ffmpeg -i rtmp://xxx/live/xxx -bsf:v "h264_mp4toannexb,h264_metadata=aud=remove" -c copy -f null - --- libavcodec/bsf/h264_mp4toannexb.c | 26 ++- tests/fate/h264.mak

[FFmpeg-devel] [PATCH] avcodec/bsf/h264_mp4toannexb.c: change extradata to annexb if this is avcc.

2025-04-23 Thread jiangjie
if get AV_PKT_DATA_NEW_EXTRADATA in AVPacket, this bitstream filter will return an error. ffmpeg -i rtmp://xxx/live/xxx -bsf:v "h264_mp4toannexb,h264_metadata=aud=remove" -c copy -f null - --- libavcodec/bsf/h264_mp4toannexb.c | 26 -- 1 file changed, 20 insertions(+), 6

[FFmpeg-devel] [PATCH] avformat/hlsenc: free memory when hlsenc_io_open failed.

2024-10-26 Thread jiangjie
--- libavformat/hlsenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 6148685f40..0d560ad1ce 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -932,6 +932,7 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)

[FFmpeg-devel] [PATCH] avformat/dashdec: free memory when hlsenc_io_open failed.

2024-10-26 Thread jiangjie
--- libavformat/hlsenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 6148685f40..0d560ad1ce 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -932,6 +932,7 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs)

[FFmpeg-devel] [PATCH] avfilter/src_movie: last_pts should be added with duration.

2024-10-13 Thread jiangjie
if video has only one frame, frame->pts - st->last_pts will always be 0. --- libavfilter/src_movie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index d2aa572d12..8bbe913574 100644 --- a/libavfilter/src_movie.c +++ b/libavfi

[FFmpeg-devel] [PATCH] avformat/dashdec: The segments in dash file doesn't read completely when segment's size and duration is very small.

2024-09-02 Thread jiangjie
If the segment is very small, avformat_find_stream_info will read all audio/video data in this segment. cur->is_restart_needed is set to 0 later in dash_read_packet function, and no chance to be set to 1 again in the read_data function. Reproduction: ffmpeg -f lavfi -i mandelbrot -f lavfi -i an

[FFmpeg-devel] [PATCH] avformat/dashdec: In SegmentList mode, startNumber is reduced by one.

2024-08-06 Thread jiangjie
startNumber starts with 1 in avformat/dashenc.c, if startNumber is start with 1, the first segment file will be skipped. --- libavformat/dashdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 63070b77be..0263a41670 100644

[FFmpeg-devel] [PATCH] avformat/mov: support sidx reference_type = 1

2024-07-30 Thread jiangjie
--- libavformat/mov.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 1052691936..38f015a766 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5964,11 +5964,10 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *p