summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/tv.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/stream/tv.c b/stream/tv.c
index 3a2064d247..3b1a8a2cfc 100644
--- a/stream/tv.c
+++ b/stream/tv.c
@@ -729,8 +729,12 @@ static int demux_open_tv(demuxer_t *demuxer, enum demux_check check)
/* get IMAGE FORMAT */
int fourcc;
funcs->control(tvh->priv, TVI_CONTROL_VID_GET_FORMAT, &fourcc);
- sh_video->gsh->codec = "rawvideo";
- sh_video->format = fourcc;
+ if (fourcc == MP_FOURCC_MJPEG) {
+ sh_video->gsh->codec = "mjpeg";
+ } else {
+ sh_video->gsh->codec = "rawvideo";
+ sh_video->format = fourcc;
+ }
/* set FPS and FRAMETIME */