Browse Source
Merge pull request #11214 from lat9nq/ff-deprecated
codec: Update to use av frame flags
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
src/video_core/host1x/ffmpeg/ffmpeg.cpp
|
|
|
@ -233,7 +233,12 @@ std::unique_ptr<Frame> DecoderContext::ReceiveFrame(bool* out_is_interlaced) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
*out_is_interlaced = frame->interlaced_frame != 0; |
|
|
|
*out_is_interlaced = |
|
|
|
#if defined(FF_API_INTERLACED_FRAME) || LIBAVUTIL_VERSION_MAJOR >= 59
|
|
|
|
(frame->flags & AV_FRAME_FLAG_INTERLACED) != 0; |
|
|
|
#else
|
|
|
|
frame->interlaced_frame != 0; |
|
|
|
#endif
|
|
|
|
return true; |
|
|
|
}; |
|
|
|
|
|
|
|
|