add a quick test to load omx

This commit is contained in:
APHW2 MFGENG 2017-11-09 06:16:41 -08:00
parent 4e080b8a36
commit 476ed4c9e0
1 changed files with 5 additions and 1 deletions

View File

@ -150,7 +150,11 @@ VideoStore::VideoStore(
Error("Could not allocate in frame"); Error("Could not allocate in frame");
return; return;
} }
video_out_codec = avcodec_find_encoder_by_name("h264_omx");
if ( ! video_out_codec ) {
Debug(1, "Didn't find omx");
video_out_codec = avcodec_find_encoder(AV_CODEC_ID_H264); video_out_codec = avcodec_find_encoder(AV_CODEC_ID_H264);
}
if (!video_out_codec) { if (!video_out_codec) {
Fatal("Could not find codec for H264"); Fatal("Could not find codec for H264");
} }