| 240 | } |
| 241 | |
| 242 | AVStream *ff_stream_clone(AVFormatContext *dst_ctx, const AVStream *src) |
| 243 | { |
| 244 | AVStream *st; |
| 245 | int ret; |
| 246 | |
| 247 | st = avformat_new_stream(dst_ctx, NULL); |
| 248 | if (!st) |
| 249 | return NULL; |
| 250 | |
| 251 | ret = stream_params_copy(st, src); |
| 252 | if (ret < 0) { |
| 253 | ff_remove_stream(dst_ctx, st); |
| 254 | return NULL; |
| 255 | } |
| 256 | |
| 257 | return st; |
| 258 | } |
| 259 | |
| 260 | const char *avformat_stream_group_name(enum AVStreamGroupParamsType type) |
| 261 | { |
no test coverage detected