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.
This commit is contained in:
Stefano Sabatini 2014-01-21 19:51:28 +01:00
parent 8e5e84c2a2
commit b539a72bba
2 changed files with 0 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {