Skip to content

Commit

Permalink
Fix bad pixel format test in MythAVCopy::Copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Feb 5, 2020
1 parent a40b7d6 commit add1ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythavutil.cpp
Expand Up @@ -368,7 +368,7 @@ int MythAVCopy::Copy(AVFrame *pic, const VideoFrame *frame,

int MythAVCopy::Copy(VideoFrame *frame, const AVFrame *pic, AVPixelFormat fmt)
{
if (fmt == AV_PIX_FMT_NV12 || AV_PIX_FMT_YUV420P)
if (fmt == AV_PIX_FMT_NV12 || fmt == AV_PIX_FMT_YUV420P)
{
VideoFrame framein {};
FillFrame(&framein, pic, frame->width, frame->width, frame->height, fmt);
Expand Down

0 comments on commit add1ed1

Please sign in to comment.