mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 08:33:23 -05:00
Use avcodec_decode_video2() when available (FFmpeg 0.6)
This commit is contained in:
parent
396edc9ad8
commit
cbc3605425
@ -279,7 +279,12 @@ artwork_rescale(AVFormatContext *src_ctx, int s, int out_w, int out_h, struct ev
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if LIBAVCODEC_VERSION_MAJOR >= 53 || (LIBAVCODEC_VERSION_MAJOR == 52 && LIBAVCODEC_VERSION_MINOR >= 32)
|
||||||
|
/* FFmpeg 0.6 */
|
||||||
|
avcodec_decode_video2(src, i_frame, &have_frame, &pkt);
|
||||||
|
#else
|
||||||
avcodec_decode_video(src, i_frame, &have_frame, pkt.data, pkt.size);
|
avcodec_decode_video(src, i_frame, &have_frame, pkt.data, pkt.size);
|
||||||
|
#endif
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user