summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-12-01 18:01:12 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-12-01 20:07:14 +0100
commitfbdf8f176e0fbf48132e45445f538d74c74107a4 (patch)
treed850541dbdbcbe44b5976b8787312f561584cf10 /ffserver.c
parent3aa1ff30f3f44a2ee980556a9bd6c0bc7d9087ac (diff)
ffserver: set format bitexact flag, eliminate warnings about it not being set
Tested-by: Reto Kromer <lists@reto.ch> Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c
index 4e5ce1fc5b..19c3ceda1a 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2323,6 +2323,9 @@ static int http_prepare_data(HTTPContext *c)
unlayer_stream(c->pfmt_ctx->streams[i], src); //TODO we no longer copy st->internal, does this matter?
av_assert0(!c->pfmt_ctx->streams[i]->priv_data);
+
+ if (src->codec->flags & AV_CODEC_FLAG_BITEXACT)
+ c->pfmt_ctx->flags |= AVFMT_FLAG_BITEXACT;
}
/* set output format parameters */
c->pfmt_ctx->oformat = c->stream->fmt;