The error-path log loops read pad 0's codec id list instead of the
actual srcpad/dstpad, printing the wrong supported-codec list when a
link is rejected.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
The break statement only exits the inner j loop, so the outer i loop
always runs to the AV_CODEC_ID_NONE terminator and the match result is
never recorded.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>