avdemux: Only set stream-format for H264/H265/AAC when we have a context

Otherwise we don't know yet whether we'll have extradata/codec_data, so
can't decide on the stream-format yet.
24 jobs for avdemux-stream-formats in 28 minutes and 18 seconds (queued for 8 seconds)