diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c index 1d66ca33e3..1568f60b29 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 790c6418ed..0ac1cd479b 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) {