[FFmpeg-cvslog] avconv: rename transcode_audio/video to decode_audio/video.
Anton Khirnov
git at videolan.org
Wed May 23 22:00:58 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri May 18 12:46:11 2012 +0200| [0629f6128e1c7507a06377f0dff39dde4ee6c7d5] | committer: Anton Khirnov
avconv: rename transcode_audio/video to decode_audio/video.
Those functions do only decoding now, encoding is run from
poll_filters().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0629f6128e1c7507a06377f0dff39dde4ee6c7d5
---
avconv.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/avconv.c b/avconv.c
index 8a8ef80..5506869 100644
--- a/avconv.c
+++ b/avconv.c
@@ -2120,7 +2120,7 @@ static int guess_input_channel_layout(InputStream *ist)
return 1;
}
-static int transcode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
+static int decode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
{
AVFrame *decoded_frame;
AVCodecContext *avctx = ist->st->codec;
@@ -2262,7 +2262,7 @@ static int transcode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
return ret;
}
-static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output)
+static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
{
AVFrame *decoded_frame;
void *buffer_to_free = NULL;
@@ -2410,10 +2410,10 @@ static int output_packet(InputStream *ist, const AVPacket *pkt)
switch (ist->st->codec->codec_type) {
case AVMEDIA_TYPE_AUDIO:
- ret = transcode_audio (ist, &avpkt, &got_output);
+ ret = decode_audio (ist, &avpkt, &got_output);
break;
case AVMEDIA_TYPE_VIDEO:
- ret = transcode_video (ist, &avpkt, &got_output);
+ ret = decode_video (ist, &avpkt, &got_output);
if (avpkt.duration)
ist->next_dts += av_rescale_q(avpkt.duration, ist->st->time_base, AV_TIME_BASE_Q);
else if (ist->st->r_frame_rate.num)
More information about the ffmpeg-cvslog
mailing list