Merge commit '0034314a69e76a53534a74cceef865cfcb7b42cc'
* commit '0034314a69e76a53534a74cceef865cfcb7b42cc': rtmp: Always call rtmp_close() on rtmp_open() failure Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
52bf4ad674
@ -2824,11 +2824,10 @@ reconnect:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rt->is_input) {
|
if (rt->is_input) {
|
||||||
int err;
|
|
||||||
// generate FLV header for demuxer
|
// generate FLV header for demuxer
|
||||||
rt->flv_size = 13;
|
rt->flv_size = 13;
|
||||||
if ((err = av_reallocp(&rt->flv_data, rt->flv_size)) < 0)
|
if ((ret = av_reallocp(&rt->flv_data, rt->flv_size)) < 0)
|
||||||
return err;
|
goto fail;
|
||||||
rt->flv_off = 0;
|
rt->flv_off = 0;
|
||||||
memcpy(rt->flv_data, "FLV\1\0\0\0\0\011\0\0\0\0", rt->flv_size);
|
memcpy(rt->flv_data, "FLV\1\0\0\0\0\011\0\0\0\0", rt->flv_size);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user