Skip to content

qplayvid.c compile errors: get_buffer2, av_frame_get_best_effort_timestamp #18

@kamalmostafa

Description

@kamalmostafa

Commit 3fd071e "Update qplayvid to newer ffmpeg APIs" breaks the build for all systems which supply ffmpeg/libav versions < 56 (i.e. practically all current systems!) ...

qplayvid.c: In function ‘decode_audio’:
qplayvid.c:140:18: error: ‘AVCodecContext’ has no member named ‘get_buffer2’
  ctx->a_codec_ctx->get_buffer2(ctx->a_codec_ctx, ctx->a_frame, 0);
                  ^
qplayvid.c: In function ‘decode_video’:
qplayvid.c:225:2: warning: implicit declaration of function ‘av_frame_get_best_effort_timestamp’ [-Wimplicit-function-declaration]
  frame_pts = av_frame_get_best_effort_timestamp(ctx->v_frame);
  ^
make[2]: *** [tools/qplayvid/CMakeFiles/qplayvid.dir/qplayvid.c.o] Error 1
make[1]: *** [tools/qplayvid/CMakeFiles/qplayvid.dir/all] Error 2
make: *** [all] Error 2

My pending pull request #17 now includes this patch to unbreak it:
Commit 12574cb "Fix qplayvid build for older ffmpeg APIs".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions