[FFmpeg-cvslog] examples/filtering_audio, video: drop call to avcodec_get_frame_defaults()
Stefano Sabatini
git at videolan.org
Tue Jan 21 20:10:53 CET 2014
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Tue Jan 21 19:51:28 2014 +0100| [b539a72bba3048ee1a14a5793114ead02bb9b2a6] | committer: Stefano Sabatini
examples/filtering_audio,video: drop call to avcodec_get_frame_defaults()
The avcodec_get_frame_defaults() function is deprecated and its use
doesn't seem required.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b539a72bba3048ee1a14a5793114ead02bb9b2a6
---
doc/examples/filtering_audio.c | 1 -
doc/examples/filtering_video.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index 1d66ca3..1568f60 100644
--- a/doc/examples/filtering_audio.c
+++ b/doc/examples/filtering_audio.c
@@ -230,7 +230,6 @@ int main(int argc, char **argv)
}
if (packet.stream_index == audio_stream_index) {
- avcodec_get_frame_defaults(frame);
got_frame = 0;
ret = avcodec_decode_audio4(dec_ctx, frame, &got_frame, &packet);
if (ret < 0) {
diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c
index 790c641..0ac1cd4 100644
--- a/doc/examples/filtering_video.c
+++ b/doc/examples/filtering_video.c
@@ -215,7 +215,6 @@ int main(int argc, char **argv)
break;
if (packet.stream_index == video_stream_index) {
- avcodec_get_frame_defaults(frame);
got_frame = 0;
ret = avcodec_decode_video2(dec_ctx, frame, &got_frame, &packet);
if (ret < 0) {
More information about the ffmpeg-cvslog
mailing list