diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-03-10 15:19:25 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-03-10 15:19:25 +0100 |
commit | 3e40090dff94088e0be0781d21eede9b78338960 (patch) | |
tree | 843d4a4f08fa823ca9af716936f01b7c57fcc111 /bin/send-gst-rtp-v-a | |
parent | ef7da444d567d8dd7e562d0959f07b357ed23bf5 (diff) |
Fail on unsupported video/audio format.
Diffstat (limited to 'bin/send-gst-rtp-v-a')
-rwxr-xr-x | bin/send-gst-rtp-v-a | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/send-gst-rtp-v-a b/bin/send-gst-rtp-v-a index d068068..4fcbb61 100755 --- a/bin/send-gst-rtp-v-a +++ b/bin/send-gst-rtp-v-a @@ -43,6 +43,10 @@ case "$VFORMAT" in RAW|'') VENC="rtpvrawpay" ;; + *) + echo "ERROR: Unsupported video format: \"$VFORMAT\"" + exit 1 + ;; esac case "$AFORMAT" in @@ -55,6 +59,10 @@ case "$AFORMAT" in RAW|'') AENC="rtpL16pay" ;; + *) + echo "ERROR: Unsupported audio format: \"$AFORMAT\"" + exit 1 + ;; esac stream() { |