[FFmpeg-devel] [PATCH 2/2] ffmpeg: don't use deprecated av_log_ask_for_sample

Michael Niedermayer michaelni at gmx.at
Fri Jan 30 14:59:24 CET 2015


On Fri, Jan 30, 2015 at 01:09:03PM +0000, Christophe Gisquet wrote:
> The solution requires accessing an lavu internal, which may not be
> a good example for ffmpeg as a library user.
> ---
>  ffmpeg.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 9b7d585..271a638 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -60,6 +60,7 @@
>  #include "libavutil/bprint.h"
>  #include "libavutil/time.h"
>  #include "libavutil/threadmessage.h"
> +#include "libavutil/internal.h"
>  #include "libavformat/os_support.h"
>  
>  #include "libavformat/ffm.h" // not public API
> @@ -1965,7 +1966,7 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
>          if (ist->dec_ctx->codec_id == AV_CODEC_ID_H264) {
>              ist->st->codec->has_b_frames = ist->dec_ctx->has_b_frames;
>          } else
> -            av_log_ask_for_sample(
> +            avpriv_request_sample(

ffmpeg.c as a user application should not use avpriv*

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150130/9d8536b4/attachment.asc>


More information about the ffmpeg-devel mailing list