Merge commit '0034314a69
'
* commit '0034314a69
':
rtmp: Always call rtmp_close() on rtmp_open() failure
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
52bf4ad674
1 changed files with 2 additions and 3 deletions
|
@ -2824,11 +2824,10 @@ reconnect:
|
|||
}
|
||||
|
||||
if (rt->is_input) {
|
||||
int err;
|
||||
// generate FLV header for demuxer
|
||||
rt->flv_size = 13;
|
||||
if ((err = av_reallocp(&rt->flv_data, rt->flv_size)) < 0)
|
||||
return err;
|
||||
if ((ret = av_reallocp(&rt->flv_data, rt->flv_size)) < 0)
|
||||
goto fail;
|
||||
rt->flv_off = 0;
|
||||
memcpy(rt->flv_data, "FLV\1\0\0\0\0\011\0\0\0\0", rt->flv_size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue