Commit 0358223b authored by bcoudurier's avatar bcoudurier

fix segv, fmt_ctx is not set for rtsp

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13910 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 25071309
...@@ -2206,7 +2206,7 @@ static int http_prepare_data(HTTPContext *c) ...@@ -2206,7 +2206,7 @@ static int http_prepare_data(HTTPContext *c)
} }
ost = ctx->streams[pkt.stream_index]; ost = ctx->streams[pkt.stream_index];
c->fmt_ctx.pb->is_streamed = 1; ctx->pb->is_streamed = 1;
if (pkt.dts != AV_NOPTS_VALUE) if (pkt.dts != AV_NOPTS_VALUE)
pkt.dts = av_rescale_q(pkt.dts, ist->time_base, ost->time_base); pkt.dts = av_rescale_q(pkt.dts, ist->time_base, ost->time_base);
if (pkt.pts != AV_NOPTS_VALUE) if (pkt.pts != AV_NOPTS_VALUE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment