summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Cohen <bencoh@notk.org>2015-05-12 14:26:03 +0200
committerBenjamin Cohen <bencoh@notk.org>2015-05-20 16:06:05 +0200
commitc94b509d35bcf96978beb92d08f3a1b8d0a6a0e7 (patch)
tree80cf9545f23a113fd3e2af4acf63013b4e295ac0
parent25e2a4c9d49981d07731e18b63718f9269148ceb (diff)
upipe_avfsink: set avformat stream id
-rw-r--r--lib/upipe-av/upipe_avformat_sink.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/upipe-av/upipe_avformat_sink.c b/lib/upipe-av/upipe_avformat_sink.c
index 3c528a2..4285c56 100644
--- a/lib/upipe-av/upipe_avformat_sink.c
+++ b/lib/upipe-av/upipe_avformat_sink.c
@@ -330,6 +330,11 @@ static int upipe_avfsink_sub_set_flow_def(struct upipe *upipe,
return UBASE_ERR_EXTERNAL;
}
+ uint64_t id;
+ if (likely(ubase_check(uref_flow_get_id(flow_def, &id)))) {
+ stream->id = id;
+ }
+
uint8_t languages;
const char *lang;
if (ubase_check(uref_flow_get_languages(flow_def, &languages)) &&