#ifdef FFCMP_HAVE_AVUTIL_FRAME_H
file.current_frame = av_frame_alloc();
#else
- file.current_frame = av_alloc_frame();
+ file.current_frame = avcodec_alloc_frame();
#endif
if (!file.current_frame) {
fprintf(stderr, "Could not allocate frame.\n");
file->complete_frames[file->n_complete_frames].frame = file->current_frame;
file->complete_frames[file->n_complete_frames].stream_index = file->packet.stream_index;
++file->n_complete_frames;
+#ifdef FFCMP_HAVE_AVUTIL_FRAME_H
file->current_frame = av_frame_alloc();
+#else
+ file->current_frame = avcodec_alloc_frame();
+#endif
if (!file->current_frame) {
fprintf(stderr, "Could not allocate frame.\n");
exit(EXIT_FAILURE);