summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-04-03 17:18:35 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-04-03 17:18:35 +0200
commitfdbae548605945fead8e05fb562da07e82474670 (patch)
treea85c0b645fa9b1ef4d672e773ed555cda06ba50b
parentc0b2246380ca324d0ff8ad9089676767d4785aad (diff)
avformat: add pixelformat AV_PIX_FMT_YUVJ420P
- Thanks to Gary Metalle for the patch
-rw-r--r--modules/avformat/avformat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/avformat/avformat.c b/modules/avformat/avformat.c
index 5e134de..62bf6bd 100644
--- a/modules/avformat/avformat.c
+++ b/modules/avformat/avformat.c
@@ -151,6 +151,7 @@ static void handle_packet(struct vidsrc_st *st, AVPacket *pkt)
switch (frame->format) {
case AV_PIX_FMT_YUV420P:
+ case AV_PIX_FMT_YUVJ420P:
vf.fmt = VID_FMT_YUV420P;
break;