add a quick test to load omx
This commit is contained in:
parent
4e080b8a36
commit
476ed4c9e0
|
@ -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(AV_CODEC_ID_H264);
|
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);
|
||||||
|
}
|
||||||
if (!video_out_codec) {
|
if (!video_out_codec) {
|
||||||
Fatal("Could not find codec for H264");
|
Fatal("Could not find codec for H264");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue