Commit 9364e4cf authored by Erwan Croze's avatar Erwan Croze 👋🏻
Browse files

Adding MediaCodec reset + Refactoring android_mediacodec.cpp

parent 2b8b1c13
This diff is collapsed.
...@@ -37,6 +37,7 @@ typedef struct { ...@@ -37,6 +37,7 @@ typedef struct {
void *priv_ptr; void *priv_ptr;
} AMediaImage; } AMediaImage;
void AMediaCodec_reset(AMediaCodec *codec);
void AMediaCodec_setParams(AMediaCodec *codec, const char *params); void AMediaCodec_setParams(AMediaCodec *codec, const char *params);
bool AMediaCodec_getInputImage(AMediaCodec *codec, int index, AMediaImage *image); bool AMediaCodec_getInputImage(AMediaCodec *codec, int index, AMediaImage *image);
bool AMediaCodec_getOutputImage(AMediaCodec *codec, int index, AMediaImage *image); bool AMediaCodec_getOutputImage(AMediaCodec *codec, int index, AMediaImage *image);
...@@ -46,4 +47,3 @@ bool_t AMediaImage_isAvailable(void); ...@@ -46,4 +47,3 @@ bool_t AMediaImage_isAvailable(void);
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif #endif
...@@ -325,7 +325,8 @@ static void enc_process(MSFilter *f) { ...@@ -325,7 +325,8 @@ static void enc_process(MSFilter *f) {
case MSH264NaluTypePPS: case MSH264NaluTypePPS:
ms_warning("MSMediaCodecH264Enc: unexpecting starting PPS"); ms_warning("MSMediaCodecH264Enc: unexpecting starting PPS");
break; break;
case MSH264NaluTypeSEI: default:
ms_warning("MSMediaCodecH264Enc: unknowning case");
break; break;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment