* [FFmpeg-devel] [PATCH 0/3] avisynth: miscellaneous fixes
@ 2022-08-08 1:25 Stephen Hutchinson
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 1/3] avformat/avisynth: add missing avs_release_video_frame Stephen Hutchinson
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Stephen Hutchinson @ 2022-08-08 1:25 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Stephen Hutchinson
Stephen Hutchinson (3):
avformat/avisynth: add missing avs_release_video_frame
avformat/avisynth: use ch_layout.nb_channels for channel count
avformat/avisynth: cosmetics after nb_channels change
libavformat/avisynth.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 6+ messages in thread
* [FFmpeg-devel] [PATCH 1/3] avformat/avisynth: add missing avs_release_video_frame
2022-08-08 1:25 [FFmpeg-devel] [PATCH 0/3] avisynth: miscellaneous fixes Stephen Hutchinson
@ 2022-08-08 1:25 ` Stephen Hutchinson
2022-08-12 21:25 ` Stephen Hutchinson
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 2/3] avformat/avisynth: use ch_layout.nb_channels for channel count Stephen Hutchinson
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 3/3] avformat/avisynth: cosmetics after nb_channels change Stephen Hutchinson
2 siblings, 1 reply; 6+ messages in thread
From: Stephen Hutchinson @ 2022-08-08 1:25 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Stephen Hutchinson
The AviSynth C API requires using avs_release_video_frame
whenever avs_get_frame has been used, but the recent addition
of frameprop reading to the demuxer was missing this in
avisynth_create_stream_video.
---
libavformat/avisynth.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index a97d12b6b6..98b4d68a57 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -728,6 +728,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st)
st->codecpar->chroma_location = AVCHROMA_LOC_UNSPECIFIED;
}
}
+ avs_library.avs_release_video_frame(frame);
} else {
st->codecpar->field_order = AV_FIELD_UNKNOWN;
/* AviSynth works with frame-based video, detecting field order can
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 6+ messages in thread
* [FFmpeg-devel] [PATCH 2/3] avformat/avisynth: use ch_layout.nb_channels for channel count
2022-08-08 1:25 [FFmpeg-devel] [PATCH 0/3] avisynth: miscellaneous fixes Stephen Hutchinson
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 1/3] avformat/avisynth: add missing avs_release_video_frame Stephen Hutchinson
@ 2022-08-08 1:25 ` Stephen Hutchinson
2022-08-08 1:44 ` James Almer
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 3/3] avformat/avisynth: cosmetics after nb_channels change Stephen Hutchinson
2 siblings, 1 reply; 6+ messages in thread
From: Stephen Hutchinson @ 2022-08-08 1:25 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Stephen Hutchinson
Fixes deprecation warning
---
libavformat/avisynth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index 98b4d68a57..5605fbefc4 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -753,7 +753,7 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->sample_rate = avs->vi->audio_samples_per_second;
- st->codecpar->channels = avs->vi->nchannels;
+ st->codecpar->ch_layout.nb_channels = avs->vi->nchannels;
st->duration = avs->vi->num_audio_samples;
avpriv_set_pts_info(st, 64, 1, avs->vi->audio_samples_per_second);
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 6+ messages in thread
* [FFmpeg-devel] [PATCH 3/3] avformat/avisynth: cosmetics after nb_channels change
2022-08-08 1:25 [FFmpeg-devel] [PATCH 0/3] avisynth: miscellaneous fixes Stephen Hutchinson
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 1/3] avformat/avisynth: add missing avs_release_video_frame Stephen Hutchinson
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 2/3] avformat/avisynth: use ch_layout.nb_channels for channel count Stephen Hutchinson
@ 2022-08-08 1:25 ` Stephen Hutchinson
2 siblings, 0 replies; 6+ messages in thread
From: Stephen Hutchinson @ 2022-08-08 1:25 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Stephen Hutchinson
---
libavformat/avisynth.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index 5605fbefc4..3d9fa2be50 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -751,10 +751,10 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st)
{
AviSynthContext *avs = s->priv_data;
- st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
- st->codecpar->sample_rate = avs->vi->audio_samples_per_second;
- st->codecpar->ch_layout.nb_channels = avs->vi->nchannels;
- st->duration = avs->vi->num_audio_samples;
+ st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
+ st->codecpar->sample_rate = avs->vi->audio_samples_per_second;
+ st->codecpar->ch_layout.nb_channels = avs->vi->nchannels;
+ st->duration = avs->vi->num_audio_samples;
avpriv_set_pts_info(st, 64, 1, avs->vi->audio_samples_per_second);
switch (avs->vi->sample_type) {
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [FFmpeg-devel] [PATCH 2/3] avformat/avisynth: use ch_layout.nb_channels for channel count
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 2/3] avformat/avisynth: use ch_layout.nb_channels for channel count Stephen Hutchinson
@ 2022-08-08 1:44 ` James Almer
0 siblings, 0 replies; 6+ messages in thread
From: James Almer @ 2022-08-08 1:44 UTC (permalink / raw)
To: ffmpeg-devel
On 8/7/2022 10:25 PM, Stephen Hutchinson wrote:
> Fixes deprecation warning
> ---
> libavformat/avisynth.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
> index 98b4d68a57..5605fbefc4 100644
> --- a/libavformat/avisynth.c
> +++ b/libavformat/avisynth.c
> @@ -753,7 +753,7 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st)
>
> st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
> st->codecpar->sample_rate = avs->vi->audio_samples_per_second;
> - st->codecpar->channels = avs->vi->nchannels;
> + st->codecpar->ch_layout.nb_channels = avs->vi->nchannels;
> st->duration = avs->vi->num_audio_samples;
> avpriv_set_pts_info(st, 64, 1, avs->vi->audio_samples_per_second);
Applied and backported to 5.1.
Can't believe we missed this...
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [FFmpeg-devel] [PATCH 1/3] avformat/avisynth: add missing avs_release_video_frame
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 1/3] avformat/avisynth: add missing avs_release_video_frame Stephen Hutchinson
@ 2022-08-12 21:25 ` Stephen Hutchinson
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Hutchinson @ 2022-08-12 21:25 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On 8/7/22 9:25 PM, Stephen Hutchinson wrote:
> The AviSynth C API requires using avs_release_video_frame
> whenever avs_get_frame has been used, but the recent addition
> of frameprop reading to the demuxer was missing this in
> avisynth_create_stream_video.
>
> ---
> libavformat/avisynth.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
> index a97d12b6b6..98b4d68a57 100644
> --- a/libavformat/avisynth.c
> +++ b/libavformat/avisynth.c
> @@ -728,6 +728,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st)
> st->codecpar->chroma_location = AVCHROMA_LOC_UNSPECIFIED;
> }
> }
> + avs_library.avs_release_video_frame(frame);
> } else {
> st->codecpar->field_order = AV_FIELD_UNKNOWN;
> /* AviSynth works with frame-based video, detecting field order can
Pushed.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-08-12 21:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 1:25 [FFmpeg-devel] [PATCH 0/3] avisynth: miscellaneous fixes Stephen Hutchinson
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 1/3] avformat/avisynth: add missing avs_release_video_frame Stephen Hutchinson
2022-08-12 21:25 ` Stephen Hutchinson
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 2/3] avformat/avisynth: use ch_layout.nb_channels for channel count Stephen Hutchinson
2022-08-08 1:44 ` James Almer
2022-08-08 1:25 ` [FFmpeg-devel] [PATCH 3/3] avformat/avisynth: cosmetics after nb_channels change Stephen Hutchinson
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git